{% extends "admin/base.html" %}

{% block main %}
	<div class='main'>
	{% if categories %}
		<table class='list'>
		<tr>
			<th>栏目名称</th>
			<th>&nbsp;</th>
		</tr>
		{% for c in categories %}
		<tr class="{{ loop.cycle('', 'alt') }}">
			<td><a href='/admin/categories/{{ c.id }}/edit/'>{{ c.categoryname }}</a></td>
			<td><a href='/admin/categories/{{ c.id }}/delete/' class='del'>删除</a></td>
		</tr>
		{% endfor %}
		</table>
		
	{% else %}
		<span class='notify'>没有设置任何栏目。</span>
	{% endif %}
		<p>&nbsp;</p>
		<div class='forwardlinks'>
			<a href='/admin/categories/new/'>新建栏目</a>
		</div>
	
	</div>
{% endblock %}